package com.ailk.kbi.kbirazor.util

import java.util.List;

import com.ailk.kbi.kbirazor.vo.KpiVO;
import com.ailk.kbi.kbirazor.vo.TimeRangeVO;
import com.ailk.kbi.kbirazor.vo.UserVO;

class DBLocalUtil {
	TimeRangeVO getTimeRangeVO() {
		TimeRangeVO timeRangeVO = new TimeRangeVO(from:"2011-07-01",to:"2011-10-07")
		timeRangeVO
	}

	List<KpiVO> getKpiValues(UserVO userVO, List<String> kpiIds){
		List<KpiVO> kpiVOes =[]
		if(kpiIds){
			Random random = new Random()
			kpiIds.each {kpiId->
				kpiVOes.add(new KpiVO(kpiId:kpiId, kpiValue1:Math.abs(random.nextInt())%200, kpiValue2:Math.abs(random.nextInt())%300, kpiValue:Math.abs(random.nextInt())%2012078, riseValue:Math.abs(random.nextInt())%501))
			}
		}
		kpiVOes
	}
}
